package org.corey.wyp.command
{
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	
	import mx.controls.Alert;
	import mx.rpc.IResponder;
	
	import org.corey.wyp.event.FinanceManagerEvent;
	import org.corey.wyp.model.ProperityModelLocator;
	
	public class FinanceManagerCommand implements ICommand
	{
		public function FinanceManagerCommand(){
		
		}
		
		public function execute(event:CairngormEvent):void
		{
			ProperityModelLocator.getInstance().application.financeManagerViewId=FinanceManagerEvent(event).data.@id;
			ProperityModelLocator.getInstance().application.financeManagerViewTitle=FinanceManagerEvent(event).data.@label;
		}
	}
}